package com.hdd.biz.finance.service;

import com.hdd.biz.app.entity.RewardRecordModel;
import com.hdd.biz.finance.dto.PaymentRequest;
import com.hdd.biz.finance.dto.PaymetListRequest;
import com.hdd.biz.finance.entity.Paymet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdd.dto.SuperResponse;

import java.util.List;

/**
 * <p>
 * 支付记录 服务类
 * </p>
 *
 * @author fang
 * @since 2021-03-09
 */
public interface PaymetService extends IService<Paymet> {

    SuperResponse list(PaymetListRequest request);

    SuperResponse checkOrder(PaymentRequest request);

    Paymet findPayMent(String paymentNo);

    boolean insertPaymeny(Paymet paymet);

    List<RewardRecordModel> rewardRecord(String worksId,Integer pageNo, Integer pageSize);

    int rewardCount(String worksId);


    double totalPaymetAmount();
    double todayPaymetAmount();
    double yesterdayPaymetAmount();
    double weekPaymetAmount();
    double monthPaymetAmount();



    Integer totalPaymet();
    Integer todayPaymet();
    Integer yesterdayPaymet();
    Integer weekPaymet();
    Integer monthPaymet();
}
